<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JQuery中绑定事件</title>
</head>
<body>
<ul>
  <li>豆包</li>
  <li>deepseek</li>
  <li>通义千问</li>
</ul>
<script src="static/js/jquery-3.7.1.min.js"></script>
<script>
  $(function (){
      $("li").click(function (){
        $(this).remove() //删除选中的标签
    })
  })
</script>
</body>
</html>